//
//  UIImage+ExtUIImage.m
//  WashForU
//
//  Created by 王俊 on 15/11/25.
//  Copyright © 2015年 王俊. All rights reserved.
//

#import "UIImage+ExtUIImage.h"

@implementation UIImage (ExtUIImage)

- (UIImage*)resetImageSize:(CGSize)size
{
    UIGraphicsBeginImageContextWithOptions(size, false, 0.0);
    [self drawInRect:CGRectMake(0, 0, size.width, size.height)];
    UIImage *newImage = [[UIImage alloc]init];
    newImage = UIGraphicsGetImageFromCurrentImageContext();
    return newImage ;
    
}


@end
